package goods

import (
	"github.com/gin-gonic/gin"
	"shopstar/reponse"
	"shopstar/reponse/goods"
	"strconv"
)

func AttributeList(ctx *gin.Context) {
	goodsId, _ := strconv.Atoi(ctx.Query("goods_id"))
	attr, _ := GoodsService.GoodsAttributeList(int64(goodsId))
	reponse.OKWithData(goods.AttributeList{
		attr,
	}, ctx)
}
